package cmd

import (
	"im-tools/internal/service"

	"github.com/gookit/color"
	"github.com/spf13/cobra"
)

var userQueryCmd = &cobra.Command{
	Use:   "userQuery",
	Short: "查询用户信息",
	Long:  `根据用户Id、手机号查询用户关联数据`,
	Run: func(cmd *cobra.Command, args []string) {
		uc := service.UserService{}
		users := uc.SelectUsers(5)
		for _, u := range users {
			color.Info.Println(u.FakeUid)
		}
	},
}

func init() {
	// userCmd.Flags().StringP("id", "i", "", "输入登录用户id")
	rootCmd.AddCommand(userQueryCmd)
}
